<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test5</title>
</head>
<body>
<form th:action="@{/th/test6}" method="post">
    <div>
        <label for="id">学号</label>
        <!--    <input type="text" id="id" name="id" th:value="${stu.id}">-->
        <input type="text" th:field="${stu.id}">
    </div>
    <div>
        <label for="name">姓名</label>
        <!--        <input type="text" id="name" name="name" th:value="${stu.name}">-->
        <input type="text" th:field="${stu.name}">
    </div>
    <button id="btn" type="submit">保存</button>
</form>
</body>
</html>